from threading import Thread
from time import sleep

class MyThread(Thread):
    def run(self):
        sleep(2)
        print "MyThread done"


if __name__ == "__main__":
    my_thread = MyThread()
    my_thread.start()
    print "Main thread done"